

import { createSelector } from '@ngrx/store';

import { OlState, NgxOlState } from '../reducers';
import { getOlStateSelector } from './ol.selector';

const getNgxOlState = createSelector(getOlStateSelector, (state: OlState) => state.ngx_ol);
const getNgxOlGraticuleVisible = createSelector(getNgxOlState, (state: NgxOlState) => state.graticuleVisible)


export const ngxOlSelector = {
    getNgxOlState,
    getNgxOlGraticuleVisible
};